﻿using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace QuestPrototype.Screen_Manager.Screens
{
    class TestScreen : BaseScreen
    {
        private string TestText = "We can have nice things!";
        private Vector2 TextPos = new Vector2(20, 195);
        private bool IsAlive = true;

        private double LifeSpan = 0;

        public TestScreen()
        {
            Name = "TestScreen";
        }


        public override void HandleInput()
        {

        }

        public override void Update()
        {
            if (LifeSpan < 5000)
            {
                LifeSpan += Globals.GameTime.ElapsedGameTime.TotalMilliseconds;
            }
            else
            {
                IsAlive = false;
            }

            if (IsAlive == false)
            {
                this.State = ScreenState.ShutDown;
            }
        }

        public override void Draw()
        {
            Globals.SpriteBatch.Begin();
        Globals.SpriteBatch.Draw(Textures.RadAvatar, new Rectangle(0, 0, (int)Globals.GameSize.X, (int)Globals.GameSize.Y), new Rectangle(16, 16, 1, 1), Color.White);
        Globals.SpriteBatch.DrawString(Fonts.Georgia_16, TestText, TextPos, Color.Red);
        Globals.SpriteBatch.End();
        }

    }
}
